<template>
  <div class="m-login">
    登陆
    <el-button @click="getList">获取数据</el-button>
    <!-- <wxlogin appid="wx50c32ae0c340a184" scope="snsapi_login" redirect_uri="http://127.0.0.1:3000/"></wxlogin> -->
  </div>
</template>

<script setup lang="ts">
// import wxlogin from "./wxlogin.vue";
import { ref } from "vue";
import api from "@/api";
import cookie from "@/utils/cookie";
// api.getToken().then((res) => {
//   console.log(res);
// });
api.getToken1().then((res) => {
  console.log(res);
  cookie.set("wx_access_token", res.data.access_token);
});
const getList = () =>{
  api.getCloundDouYinList().then((res) => {
    console.log(res);
    // cookie.set("token", res.data.access_token);
  });
}
</script>

<style lang="less">
.m-login {
}
</style>
